--[[
 -- *名称:SuperBombAnalysisResult
 -- *描述:超级炸弹结果集
 -- *版权:Copyright © 2016-2018 深圳市三只小熊科技有限公司 版权所有
 -- *作者:Administrator
 -- *创建日期:2017-11-09
 -- *修改日期:2017-11-09
 ]]
local DdzAnalysisResult = require(basePath .. "suit/ddzanalysisresult") ;

local SuperBombAnalysisResult = pokercore.class(DdzAnalysisResult,false);
---
 -- [ctor 默认类的构造方法]
 -- @DateTime 2017-09-20
 -- @param     [description]
 -- @return    [description]
 --
function SuperBombAnalysisResult:ctor(...)
  	SuperBombAnalysisResult.super.ctor(self,...)
end

---
 -- [dtor 默认类的销毁方法]
 -- @DateTime 2017-09-20
 -- @param     [description]
 -- @return    [description]
 --
function SuperBombAnalysisResult:dtor(...)
  	SuperBombAnalysisResult.super.dtor(self,...)
end

--@Override
function SuperBombAnalysisResult:doCompareTo(compareTo)
	if (compareTo == null) then
		return 1;
	else 
		local cardNum = self:getCardNum() - compareTo:getCardNum();
		if (cardNum == 0) then
			if (self:isAllCardLazi()) then
				return 1;
			elseif (compareTo:isAllCardLazi()) then
				return -1;
			else 
				return self:getNoneLaziValueCounter():getAllValues()[1]
						- compareTo:getNoneLaziValueCounter():getAllValues()[1];
			end
		else 
			return cardNum; -- 超级炸弹比数量，数量多的大
		end
	end

end



return SuperBombAnalysisResult;

